package com.vlyman.shiro.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 类描述：
 *  Shiro拦截器配置实体类
 *
 * @author chenjs
 * @date 2018-12-29 22:53
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Builder
@TableName("sys_permission_filter")
public class SysPermissionFilter implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 请求uri
     */
    private String uri;

    /**
     * 需要具备的权限
     */
    private String permission;

    /**
     * 排序
     */
    private Integer sort;
    public static final String ID = "id";
    public static final String URI = "uri";
    public static final String PERMISSION = "permission";
    public static final String SORT = "sort";

}
